<%@page import="study.top.jsp.PageHandler"%>
<%@page import="study.top.mydb.items.NboardItem"%>
<%@page import="java.util.ArrayList"%>
<%@page import="study.top.mydb.Nboard"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ include file="dbcon.jsp" %>
	
<!DOCTYPE html>
<html lang="ko">
	<head>
	
	
<%
db.connect();
Nboard nboard = new Nboard();
ArrayList <NboardItem> list1 = nboard.selectNboardList();


db.disconnect();


if (list1 == null) {
	web.goPage(null, "데이터 조회에 실패하였습니다.");
	return;
}

%>
	
	
	
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>여기에 제목을 입력하세요.</title>

		<!-- 모바일 웹 페이지 설정 -->
		<link rel="shortcut icon" href="assets/ico/favicon.png" />
		<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png" />
		<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png" />
		<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png" />
		<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png" />

		<!-- bootstrap -->
		<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" />
	
		<!-- Top makes css file -->
		<link rel="stylesheet" type="text/css" href="assets/css/topCommon.css" />
		<!-- 나눔고딕 웹 폰트 적용 -->
		<link rel="stylesheet" type="text/css" href="assets/css/nanumfont.css" />



</head>
	<body>
<br />




	<div class="container">
	<div class="top-main-header"></div>
			<%
				//<input type="hidden" name="prono" value="<%=docid%" />
			%>
			<div class="wish-header">
				<h2>
					NOTICE BOARD
				</h2>
			</div>
			<div class="Info wishmargin">
				TOP공지사항입니다.
				<br /> <br />
			</div>
			


<table width="80%" cellpadding="0" cellspacing="0" border="0">
  <tr height="5"></tr>
 <tr style="background:url('img/table_mid.gif') repeat-x; text-align:center;">
   <td width="5"><img src="img/table_left.gif" width="5" height="30" /></td>
   <td width="73">제목</td>
   <td width="379">작성자</td>
    <td width="73">작성일</td>


   <td width="7"></td>
  </tr>
  </div>
  <tbody>
					<%
						if (list1.size() < 1) {
					%>
					<tr>
						<td colspan="5"><p class="text-center text-warning"
								style="height: 100px">저장된 데이터가 없습니다.</p></td>
					</tr>
					<%
						} else {
							for (int i=0; i<list1.size(); i++) {
								NboardItem item = list1.get(i);
					%>
					<tr class="text-center">
					
						<td></td>
						<td><%=item.getTitle()%></td>
						<td><%=item.getMember_seq()%></td>
						<td><%=item.getReg_date()%></td>
						
						<td><a href="aMnBoardView.jsp?seq=<%=item.getSeq()%>"
							class="btn top-btn-custom">내용보기</a></td>
					</tr>
					<%
							}
						}
					%>
					
				</tbody>
  

 </table>
 
<table width="100%" cellpadding="0" cellspacing="0" border="0">

			<div align="center">
					<div class="top-td">
						<a href="nBoardAdd.jsp"><input type="button" class="top-btn-custom top-btn-size5" value="글쓰기"></a>
					</div>
					
				</div>
</table>


  
  <br />
<br />
<br />
    <br />
<br />
<br />
  






		<script src="assets/js/jquery.js"></script>
		<script src="assets/js/bootstrap.min.js"></script>

	</body>
</html>

